﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.MES.SLY.Domain.Entities
{
    public class BomMaterialIdModel
    {
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>

        [Required]
        [MaxLength(100)]
        public string MaterialName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>

        [MaxLength(100)]
        public string Spec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>

        [MaxLength(20)]
        public string Unit { get; set; }
        /// <summary>
        /// 备注
        /// </summary>

        [MaxLength(255)]
        public string Remark { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(50)]
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public DateTime? CreatedAt { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(50)]
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string? UpdatedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public DateTime? UpdatedAt { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public bool IsDeleted { get; set; }
    }
}
